//品牌相关的请求函数
import request from '@/utils/request'
//品牌接口 
export const reqTradeMark = (page,limit)=>request({url:`/admin/product/baseTrademark/${page}/${limit}`,method:'get'});

//新增品牌与修改品牌两个接口
export const reqAddOrUpdateTradeMark = (data)=>{
          //区分添加还是修改。
          if(data.id){
              //修改接口
              return request({url:`/admin/product/baseTrademark/update`,method:'put',data})
          }else{
              //添加接口
              return request({url:`/admin/product/baseTrademark/save `,method:'post',data})
          }
}

//删除某一个品牌接口
export const reqDeleteTradeMark = (id)=>request({url:`/admin/product/baseTrademark/remove/${id}`,method:'delete'});